package edu.npu.cv.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.npu.cv.entity.ArticleDO;
import edu.npu.cv.utils.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleDAO extends BaseMapper<ArticleDO> {

    List<ArticleDO> getArticleDOs(PageQueryUtil pageQueryUtil);

    int deleteBatch(Long[] ids);

    ArticleDO getArticleDOById(long id);

    List<ArticleDO> findPa();

    List<ArticleDO> findActivity();

    List<ArticleDO> findPaIndex();
}
